<%@ page contentType="text/html; charset=utf-8"%>

<%@ include file="/WEB-INF/jsp/includeTaglib.jsp"%>

<table class="dbborder" width="100%" border="0" cellpadding="0" cellspacing="1">
   <tr class="rowHead">
     <td height="20" nowrap align="center" class="globalTextBold"></td>
     <td height="20" nowrap align="center" class="globalTextBold">变更类型</td>
     <td height="20" nowrap align="center" class="globalTextBold">项目</td>
     <td height="20" nowrap align="center" class="globalTextBold">终端信息</td>
     <td height="20" nowrap align="center" class="globalTextBold">变更内容</td>
     <td height="20" nowrap align="center" class="globalTextBold">提交人</td>
     <td height="20" nowrap align="center" class="globalTextBold">提交日期</td>
     <td height="20" nowrap align="center" class="globalTextBold">操作</td>
   </tr>
	<c:forEach var="usr" items="${page.data}" varStatus="status">
		<tr class="rowClass">
            <td height="20" class="globalText"><c:choose><c:when test="${usr.storeSyncStatus=='sync_done'}">已同步</c:when><c:when test="${usr.storeSyncStatus=='sync_obsolete'}">已废弃</c:when></c:choose></td>
			<td height="20" class="globalText">
			<c:if test="${usr.dataTypeCode == CODE_WF_STEP_TYPE_STORE_ADDRESS}">
				地址变更
			</c:if>
			<c:if test="${usr.dataTypeCode == CODE_WF_STEP_TYPE_CONTACT_NAME or usr.dataTypeCode == CODE_WF_STEP_TYPE_CONTACT_POSITION or usr.dataTypeCode == CODE_WF_STEP_TYPE_CONTACT_WAY}">
				联系人变更
			</c:if>
	    </td>
      <td height="20" class="globalText">${usr.projectName}</td>
      <td height="20" class="globalText">${usr.planJobResult.channel.channel.name}</td>
      <td height="20" class="globalText">${usr.data}</td>
      <td height="20" class="globalText">${usr.empName}</td>
      <td height="20" class="globalText"><fmt:formatDate value="${usr.finishedAt}" pattern="yyyy-MM-dd"/></td>
      <td height="20" class="globalText">
      	<input type="button" class="btnStyle" value="查看" onclick="javascript:window.location='<c:url value="/admin/storeChangeDetail/${usr.id}.html" />'">
			</td>
		</tr>
	</c:forEach>
</table>

<%@ include file="/WEB-INF/jsp/includePagination.jsp"%>

<script>
</script>
